<%-- 
    Document   : detailMatiere
    Created on : 12 avr. 2013
    Author     : Laura
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <link rel="stylesheet" href="includes/style.css"/>
        <script type="text/javascript" src="includes/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="includes/commun.js"></script>
        <title>Détail des notes par matière</title>
    </head>

    <body>
        <div class="page">
            <div class="header">Détail des notes par matière</div>
            <div class="content">
                <div class="col-gauche">
                    <div class="selection-cours">
                        <select id="select-cours">
                            <c:forEach var="cours" items="${sessionScope.listeCours}">
                                <option value="${cours.idCour}"><c:out value="${cours.nomCour}"/></option>
                            </c:forEach>
                        </select>
                    </div>
                    <c:forEach var="cours" items="${sessionScope.listeCoursEns}">
                        <div class="details-cours" id="${cours.key.idCour}-details">
                            Cours : <span id="cours"><c:out value="${cours.key.nomCour}"/></span>
                            Intervenant : <span id="intervenant"><c:out value="${cours.value.nom}"/></span>
                            Coefficient <span id="coefficient"><c:out value="${cours.key.coefCour}"/></span>
                        </div>
                    </c:forEach>
                    <div class="liste-note">
                        <c:forEach var="cours" items="${sessionScope.listeCours}">
                            <table class="tab-note" id="${cours.idCour}-notes">
                            <c:set scope="session" var="idCoursCourant" value="${cours.idCour}" />
                            <tr>
                                <th>Liste des examens</th>
                                <th>Note obtenue</th>
                            </tr>
                            <c:forEach var="type" items="${sessionScope.listeExamNote}">
                                <c:choose>
                                    <c:when test="${cours.idCour} == ${type.key.idCour}">  
                                    <tr>
                                        <td><c:out value="${type.key.nomExamen}"/></td>
                                        <td><c:out value="${type.value.note}"/></td>
                                    </tr>
                                    </c:when>
                                </c:choose>
                            </c:forEach>
                            </table>
                        </c:forEach>
                    </div>


                </div>
                <div class="col-droite">
                    <form method="get" class="deco" action="/UniversityPortal/Deconnexion">
                        <input type="submit" value="Déconnexion"/>
                    </form>

                    <div  class="retour-recap">
                        <form method="get" id="" action="/UniversityPortal/RecapNotes">
                            <input type="submit" name="retourRecap" value="Retour au récapitulatif"/>
                        </form>  
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            <div class="footer">Université Paris Descartes</div>
        </div>
    </body>
</html>
